﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="BaoJian.WebManager.Manager.KeyWord.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div align="right">
            &nbsp;<asp:Button ID="New" runat="server" Text="新建" OnClick="New_Click" />&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Edit" runat="server" Text="编辑" OnClick="Edit_Click" 
                style="height: 26px" />&nbsp;&nbsp;&nbsp;
            <asp:Button ID="Delete" runat="server" Text="删除" OnClick="Delete_Click" />&nbsp;&nbsp;&nbsp;
        </div>
        <div>
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White"
                BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnRowEditing="GridView1_RowEditing"
                AllowSorting="True" PageSize="50" AllowPaging="True" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                OnRowUpdating="GridView1_RowUpdating" 
                OnPageIndexChanging="GridView1_PageIndexChanging" 
                onrowdeleting="GridView1_RowDeleting" onsorting="GridView1_Sorting" 
                   >
                <RowStyle ForeColor="#000066" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <input type="checkbox" id="selectCB" name="selectCB" value="<%# DataBinder.Eval(Container.DataItem,"SID")%>" />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="SID" HeaderText="序号"  />
                    <asp:BoundField DataField="KWord" HeaderText="关键字"/>
                    <asp:BoundField DataField="KLevel" HeaderText="级别"  SortExpression="KLevel" />
                    <asp:CommandField CancelText="取消" DeleteText="删除" EditText="编辑" HeaderText="操作" ShowDeleteButton="True"
                        ShowEditButton="True" InsertText="插入" NewText="新建" SelectText="选择" UpdateText="更新" />
                </Columns>
                <FooterStyle BackColor="White" ForeColor="#000066" />
                <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
            </asp:GridView>
        </div>
    </div>
    </form>
</body>
</html>
